//
//  ImageLoader.h
//  WeddingStoreFinder
//
//  Created by Macdev on 11/19/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ImageLoaderDelegate;


@interface ImageLoader : NSObject {


}

@property (nonatomic, assign) NSObject <ImageLoaderDelegate> *delegate;
@property (nonatomic, retain) NSString *imgURL;
@property (nonatomic, retain) UIImage *image;
@property (nonatomic, retain) NSData *imageData;
@property BOOL needRespondInUIThread;
@property (nonatomic, retain) NSString *imageName;

- (BOOL) imageLoaded;



+ (ImageLoader*) getInstacne;
+ (void) releaseInstance;

@end

@protocol ImageLoaderDelegate <NSObject>
- (void)imageDidLoad:(ImageLoader*)imageLoader;
- (void)noImageFound:(ImageLoader*)imageLoader;
@end
